﻿using System.ComponentModel.DataAnnotations;

namespace MathTutorPro.Models.Requests
{
    public class StudentCreateRequest
    {
        [Required]
        [StringLength(20, ErrorMessage = "学号长度不能超过20个字符")]
        public string StudentNo { get; set; }

        [Required]
        [StringLength(50, ErrorMessage = "姓名长度不能超过50个字符")]
        public string UserName { get; set; }

        [Required]
        [Phone(ErrorMessage = "请输入有效的电话号码")]
        public string PhoneNumber { get; set; }

        [Required]
        [Range(0, 1, ErrorMessage = "性别必须为0(女)或1(男)")]
        public int Gender { get; set; }
    }
}
